package com.model.vo.sys.role;

import com.model.vo.sys.menu.GetSysMenuVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.model.vo.sys.dept.DeptVO;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @Author: zql
 * @Description:
 * @Data: 9:23 2021/7/1
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoleVO {
    @ApiModelProperty(value = "角色ID",required = true)
    private Long sysRoleId;

    @ApiModelProperty(value = "角色名",required = true)
    private String name;

    @ApiModelProperty(value = "数据范围（0：全部数据权限 1：自定数据权限 2：本部门数据权限 3：本部门及以下数据权限 4:仅本人数据）",allowableValues = "0,1,2,3,4",required = true)
    private Byte dataScope;

    @ApiModelProperty(value = "描述",required = true)
    private String synopsis;

    @ApiModelProperty(value = "创建时间(yyyy-MM-dd HH:mm:ss)",required = true)
    private Date createTime;

    @ApiModelProperty(value = "创建者",required = true)
    private String creator;

    @ApiModelProperty(value = "更新时间(yyyy-MM-dd HH:mm:ss)",required = true)
    private Date updateTime;

    @ApiModelProperty(value = "修改者",required = true)
    private String modifier;

    @ApiModelProperty(value = "0:有效,1:停用,2:删除",allowableValues = "0,1,2",required = true)
    private Byte isDelete;

    @ApiModelProperty(value = "绑定的用户数",required = true)
    private Integer userCount;

    @ApiModelProperty(value = "权限列表",required = true)
    private Set<String> permissionSet;

    @ApiModelProperty(value = "按钮权限关键字列表",required = true)
    private Set<String> buttonSet;

    @ApiModelProperty(value = "部门列表",required = true)
    List<DeptVO> deptList;

    @ApiModelProperty(value = "菜单列表",required = true)
    List<GetSysMenuVO> menuList;
}
